﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GestionWeb.ProductosMS.Producto>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Gestion Almacenes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Registrar Nuevo Producto</h2>

    <% using (Html.BeginForm()) {%>
            <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend><font color="red">(*) Campos Obligatorios</font></legend>

            <h4><b><font color="red"><%: ViewData["Error"] %></font></b></h4>

            <div class="editor-label">
                <label for="Usuario">Usuario</label><b><font color="red">&nbsp;(*)</font></b>
            </div>
            <div class="editor-field">
                 <%:Html.DropDownList("dsUsuarioList", (SelectList)ViewData["dsUsuario"], "---------Seleccione---------")%>
            </div>

            <div class="editor-label">
                <label for="EAN">EAN</label><b><font color="red">&nbsp;(*)</font></b>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.EAN)%>
                <%: Html.ValidationMessageFor(model => model.EAN)%>
            </div>
            
            <div class="editor-label">
                <label for="Denominacion">Denominacion</label><b><font color="red">&nbsp;(*)</font></b>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Denominacion)%>
                <%: Html.ValidationMessageFor(model => model.Denominacion)%>
            </div>

            <div class="editor-label">
                <label for="Marca">Marca</label><b><font color="red">&nbsp;(*)</font></b>
            </div>
            <div class="editor-field">
                 <%:Html.DropDownList("dsMarcaList", (SelectList)ViewData["dsMarca"], "---------Seleccione---------")%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Medida) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Medida)%>
                <%: Html.ValidationMessageFor(model => model.Medida)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Descripcion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Descripcion)%>
                <%: Html.ValidationMessageFor(model => model.Descripcion)%>
            </div>

            <div class="editor-label">
                <label for="TipoProducto">Tipo Producto</label><b><font color="red">&nbsp;(*)</font></b>
            </div>
            <div class="editor-field">
                 <%:Html.DropDownList("dsTipoProductoList", (SelectList)ViewData["dsTipoProducto"], "---------Seleccione---------")%>
            </div>
            
            <p>
                <input type="submit" value="Crear" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a Lista", "Index") %>
    </div>

</asp:Content>

